

<script
	src="<?= base_url(); ?>third_party/ckeditor/ckeditor.js"></script>

<section class="wrapper">
	<!-- page start-->
	<section class="panel">
		<header class="panel-heading"> REVIEWS MANAGEMENT (EDIT) <span class="pull-right"><a href="<?= base_url();?>reviews/admin/admin_review"
				type="button" class="btn btn-success btn-sm">Go to ReviewList</a> </span></header>
		<div class="panel-body">
			<form class="form-horizontal" role="form" name="review" method="POST"
				action="<?= base_url();?>reviews/admin/admin_review/update">
				<?php
				$this->session->flashdata('message'); {
					$msg = $this->session->flashdata('message');
					echo '<font color="red">' . $msg . '</font>';
				}
				?>
				<div class="form-group">
					<label for="input" class="col-lg-2 control-label">User Name</label>
					<div class="col-lg-8">
						<input type="text" class="form-control" id="user_name"
							name="user_name"
							value="<?= $this->admin_member_model->get_member($review['details']->mem_id)->name;?>">
					</div>
				</div>
				<div class="form-group">
					<label for="input" class="col-lg-2 control-label">Comment</label>
					<div class="col-lg-8">

						<textarea class="form-control ckeditor" id="review_details"
							name="review_details" rows="6">
						<?= $review['details']->comment;?>
						</textarea>
						<script type="text/javascript">
                            CKEDITOR.replace( 'review_details',
                            {
                                skin : 'v2',
                                enterMode : CKEDITOR.ENTER_BR,
                                toolbar :
                                    [
                                    [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
                                    [ 'UIColor' ]
                                ]

                            });
                        </script>
					</div>
				</div>

				<div class="form-group">
					<div class="col-lg-offset-2 col-lg-8">
					<input type="hidden" name="id" value="<?= $id;?>"/>
						<input type="submit" class="btn btn-info pull-right" name="add"
										value="Update Review"  <?php if($this->config->item('mode')=='DEMO'){?>onclick="alert ('Sorry! Demo mode '); return false;" <?} else?>onclick="return confirm('Are you sure ?');" />
					</div>
				</div>


			</form>
		</div>
		<!-- End of Body Panel -->
	</section>
	<!-- page end-->
</section>

